<!doctype html> 
<html ng-app='text'> 
<head> 
    <meta charset="utf-8"> 
    <title></title>
    <style type="text/css">


    </style> 
    <script type="text/javascript" src='angular.js'></script>
    <script type="text/javascript">
   		var app = angular.module('text',[]);
   		app.controller('const',function ($scope,$http){
   			$scope.a = ''
   			$scope.arr = [];
   			$scope.c = ''

   			$scope.$watch('a',function (){
   				$http.jsonp(
   					'https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su',{
   						params:{
   							wd:$scope.a,
   							cb:"JSON_CALLBACK"
   						}
   					}
   					).success(function (res){
   						//$scope.c = JSON.stringify(res);
   						$scope.arr = res.s;
   					}).error(function(){
   						alert(1);
   					})
   			});
   		})

    </script>
</head>
<body ng-controller='const'>
<input ng-model='a'>
<ul>
	<li ng-repeat='i in arr'>{{i}}</li>
</ul>

{{c}}
</body>
</html>